Class DisplayNotification


  • public class DisplayNotification
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void handleNotification​(android.os.Bundle data, android.content.Context context)
      Handles notification
      static boolean isAppInForeground​(android.content.Context context)
      Check if the app is in foreground
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DisplayNotification

        public DisplayNotification()
    • Method Detail

      • isAppInForeground

        public static boolean isAppInForeground​(android.content.Context context)
        Check if the app is in foreground
        Parameters:
        context -
        Returns:
        a boolean
      • handleNotification

        public static void handleNotification​(android.os.Bundle data,
                                              android.content.Context context)
        Handles notification
        Parameters:
        data -
        context -